package searchteam.client.beansMirrors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

public class PaperMirror implements Serializable {

	private static final long serialVersionUID = -4780306249821550647L;

	private int id;
	private String title;
	private String state;
	private Collection<PersonMirror> authors;
	
	public PaperMirror() {
		authors = new ArrayList<PersonMirror>();
	}
	
	public PaperMirror(String title, String state) {
		this.title = title;
		this.state = state;
		authors = new ArrayList<PersonMirror>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Collection<PersonMirror> getAuthors() {
		return authors;
	}

	public void setAuthors(Collection<PersonMirror> authors) {
		this.authors = authors;
	}

	public void addAuthor(PersonMirror author) {
		authors.add(author);
	}

	public void removeAuthor(PersonMirror author) {
		authors.remove(author);
	}
	
}
